package com.chinamobile.shiro_springboot.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.chinamobile.shiro_springboot.domain.Product;

@FeignClient(name="SERVICE-PRODUCT",fallback = Exception.class)
public interface ProductFeignService {
	
	
	@GetMapping("/product/{id}")
	public Product getProductById(@PathVariable("id") Integer id);
	

}
